﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CQIE.TES.IDAL;
using CQIE.TES.Model;

namespace CQIE.TES.DAL
{
    public class TeachingOfficeDAL : DALBase<TeachingOffice>,ITeachingOfficeDAL
    {
        public List<Teacher> GetTeachingOfficeTeacherListByTeacherId(int tid)
        {
            using (MyDB db = new MyDB())
            {
                var data = db.Teacher.Find(tid)?.TeachingOffice.Teachers.Where(r => r.ID != tid).ToList();
                return data;
            }
        }
    }
}
